package tuxing;

public  class Sanjiao extends Pingmian{
	double d,h;
	Sanjiao(double d,double h){
		this.d=d;
		this.h=h;
	}
	public double getzc(){
		return 3*d;
	}
	public double getmj(){
		return (d*h)/2.0;
		
	}
	
}
